import Vue from 'vue'
import Router from 'vue-router'
Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'index',
      component: resolve => require(['@/views/index/index.vue'], resolve)
    },
    {
      path: '/login',
      name: 'logn',
      component: resolve => require(['@/views/login/login.vue'], resolve)
    },
    {
      path: '/new',
      name: 'new',
      component: resolve => require(['@/views/newArticle.vue'], resolve)
    }
  ]
})
